package com.unknowpupil.oauth2.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;


/**
 * <p>
 * 角色权限表
 * </p>
 *
 * @author AutoGenerator
 */
@TableName("tb_role_permission")
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class TbRolePermission implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)

    private Long id;
    /**
     * 角色 ID
     */

    @ApiModelProperty(value = "角色 ID")
    private Long roleId;
    /**
     * 权限 ID
     */

    @ApiModelProperty(value = "权限 ID")
    private Long permissionId;

}
